package com.jeeplus.modules.guide.service;
import com.jeeplus.database.datasource.annotation.DS;
import com.jeeplus.modules.guide.mapper.MobileXQQueueMapper;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import java.util.*;


/**
 * ClassName: MobileXQQueueService
 * Function:  西区对接service
 * Date:      2021/6/11 18:35
 *
 * @author azj
 * version    V1.0
 */
@DS("xqdata")
@RequiredArgsConstructor
@Service
@Slf4j
public class MobileXQQueueService {

    private final MobileXQQueueMapper mobileXQQueueMapper;

    public HashMap<String,String> getOtherQueueValue(String number){
        HashMap<String, String> otherQueueValue = mobileXQQueueMapper.getOtherQueueValue(number);
        if(null != otherQueueValue && !otherQueueValue.containsKey("tell"))otherQueueValue.put("tell",null);
        return mobileXQQueueMapper.getOtherQueueValue(number);
    }
}
